NW02_zhi.prototype.zhi = function (zhi) {
	let lx = this._ngj_lx();
	switch (lx) {
		//value 输入类型的控件
		case 'INPUT':
			let _sx = this.Jiedian.getAttributeNode('type');
			if (_sx) {
				switch (_sx.value.toLowerCase()) {
					case 'checkbox':
					case 'radio':
						return this._ngj_zhi_v2(zhi);
					default:
						return this._ngj_zhi_v(zhi);
				}
			}
		case 'TEXTAREA':
			return this._ngj_zhi_v(zhi);
		//src 指定路径的 类型的控件
		case 'IMG':
		case 'AUDIO':
			return this._ngj_zhi_src(zhi, lx);
		case 'SELECT':
			let _ezM = this.Jiedian.options;
			if (zhi == undefined) {
				let _a;
				for (i = 0; i < _ezM.length; i++) {
					if (_ezM[i].selected) {
						_a = _ezM[i].getAttributeNode('value');
						return _a ? _a.value : '';
					}
				}
				return null;
			}
			for (i = 0; i < _ezM.length; i++) {
				if (zhi) {
					if (_ezM[i].value == zhi) {  //
						_ezM[i].selected = true;
						return;
					}
				} else if (!_ezM[i].getAttributeNode('value')) {
					_ezM[i].selected = true;
					return;
				}
			}
	}
}

// 假值=不选择；真值=选中；null=取反
NW02_zhi.prototype.sz = function (zhi) {
	if (zhi == undefined) {
		this.Jiedian.checked = !this.Jiedian.checked;
	} else {
		this.Jiedian.checked = zhi ? true : false;
	}
	return this.Jiedian.checked;
}

/**
 * 禁用值
 * @param {真假} zhi 是否禁用。 true=禁；false=不禁；如果zhi为null,则，取反值
 */
NW02_zhi.prototype.jinzhi = function (zhi) {
	if (zhi == null) {
		this.Jiedian.disabled = !this.Jiedian.disabled;
		return this.Jiedian.disabled;
	}
	this.Jiedian.disabled = zhi ? true : false;
	return this.Jiedian.disabled;
}

NW02_zhi.prototype.sc = function () {
	let lx = this._ngj_lx();
	switch (lx) {
		//value 输入类型的控件
		case 'INPUT':
		case 'TEXTAREA':
			this.Jiedian.value = ''
			return;
		//src 指定路径的 类型的控件
		case 'IMG':
		case 'AUDIO':
			this.jd.xgSX('SRC', null);
			this._ngj_audio(lx);
	}

}

//value 输入类型的控件
NW02_zhi.prototype._ngj_zhi_v = function (zhi) {
	if (zhi == undefined) {
		return this.Jiedian.value
	}
	this.Jiedian.value = zhi;
}
NW02_zhi.prototype._ngj_zhi_v2 = function (zhi) {
	if (zhi == undefined) {
		// console.log(this.Jiedian.value)
		return this.Jiedian.value
	}
	if (typeof zhi == 'string') {
		zhi = new Boolean(zhi);
	}
	this.Jiedian.checked = zhi ? true : false;
}

NW02_zhi.prototype._ngj_audio = function (lx) {
	if (lx == 'AUDIO') {
		this.Jiedian.load();
	}
}
//src 指定路径的 类型的控件
NW02_zhi.prototype._ngj_zhi_src = function (zhi, lx) {
	if (zhi == undefined) {
		return this.jd.hqSXzhi('SRC')
	}
	this.jd.xgSX('SRC', zhi);
	this._ngj_audio(lx);
}

NW02_zhi.prototype._ngj_lx = function () {
	let _lx = this.Jiedian.nodeName;
	if (_lx == 'INPUT' && this.Jiedian.type == 'image') {
		return 'IMG';
	}
	return _lx;
}